<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>

<body>
  <script src="./jquery-3.4.1.min.js"></script>
  <script>
    // jq的ajax的get请求简写
    // jQuery.get(url, [data], [callback], [type])
    //url  请求地址
    // data 请求发送数据
    //callback 成功回调
    //type 回内容格式  json  text html xml  script

    $.get("http://127.0.0.1:3009/users/reg", {}, function (res) {
      console.log(res)
    }, "json")




  </script>
</body>

</html>